package com.java;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

@Controller
public class Users {
    @Bean("user")
    public User getUser(){
        User user = new User();
        user.setId(123);
        user.setName("李逵");
        return user;
    }
}
